 

#region Copyright Statement
//////////////////////////////////////////////
//	ORMAC
//  By: Ali Ghomi (2011)
//////////////////////////////////////////////
#endregion

#region using
using System;
using System.Collections.Generic;
using ORMAC;
using ORMAC.Attributes;
using System.Runtime.Serialization;
#endregion

namespace Test
{
	/// <summary>
	/// Auto generated class by ORMAC from Categories table
	/// </summary>
	[Table("Categories")]
	[DataContract]
	public class OCategories
	{
		/// <summary>
		/// Auto generated property by ORMAC from CategoryID column
		/// </summary>		
		[PrimaryKey]
		[Field("CategoryID")]
		[DataMember]
		public int CategoryID{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from CategoryName column
		/// </summary>		
		[Field("CategoryName")]
		[DataMember]
		public string CategoryName{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from Description column
		/// </summary>		
		[Field("Description")]
		[DataMember]
		public string Description{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from Picture column
		/// </summary>		
		[Field("Picture")]
		[DataMember]
		public Byte [] Picture{
			get;
			set;
		}
		/// <summary>
		/// Auto generated class property by ORMAC using
		///CategoryID as primary key and CategoryID as foreign key in  Products table
		/// </summary>				
		[DataMember]
		[Join(ParentCol="CategoryID",ChildCol="CategoryID")]
		public List<OProducts> Productss{
			get;
			set;
		}

	}
}
